package com.capgemini.scaffold.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.capgemini.scaffold.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    // 查询账号密码是否一致
    User queryAccount(@Param("account") String account, @Param("password") String password);

    // 查询账号是否存在
    Integer queryCount(@Param("account") String account);

    // 注册账号
    void insertAccount(User user);

    // 修改用户信息
    boolean updateUserById( User user);


}
